
import Layout from '@/layout'

export default [
  {
    path: '/develop',
    component: Layout,
    redirect: 'noRedirect',
    name: 'Develop',
    meta: { title: '开发指南', icon: 'el-icon-cpu', roles: ['develop'] },
    children: [
      {
        path: '/develop/introduction',
        name: 'Introduction',
        component: () => import('@/views/develop/introduction'),
        meta: { title: '简介' }
      },

      {
        path: '/develop/install',
        name: 'Install',
        component: () => import('@/views/develop/install'),
        meta: { title: '安装&启动' }
      },

      {
        path: '/develop/demo',
        name: 'Demo',
        // component: () => import('@/views/develop/demo'),
        meta: { title: '开发示例' },
        component: { render(c) { return c('router-view') } },
        redirect: 'noRedirect',
        alwaysShow: true,
        children: [
          {
            path: '/develop/demo/inquire',
            name: 'Inquire',
            component: () => import('@/views/develop/demo/inquire'),
            meta: { title: '查询功能' }
          },
          {
            path: '/develop/demo/create',
            name: 'Create',
            component: () => import('@/views/develop/demo/create'),
            meta: { title: '添加功能' }
          },
          {
            path: '/develop/demo/update',
            name: 'Update',
            component: () => import('@/views/develop/demo/update'),
            meta: { title: '编辑功能' }
          },
          {
            path: '/develop/demo/delete',
            name: 'Delete',
            component: () => import('@/views/develop/demo/delete'),
            meta: { title: '删除功能' }
          },
          {
            path: '/develop/demo/template',
            name: 'Template',
            component: () => import('@/views/develop/demo/template'),
            meta: { title: '页面模板' }
          }
        ]
      },

      {
        path: '/develop/route',
        name: 'Route',
        component: () => import('@/views/develop/route'),
        meta: { title: '路由和菜单' }
      },

      {
        path: '/develop/api',
        name: 'Api',
        component: () => import('@/views/develop/api'),
        meta: { title: 'API接口管理' }
      },

      {
        path: '/develop/build',
        name: 'Build',
        component: () => import('@/views/develop/build'),
        meta: { title: '构建&发布' }
      }
      // {
      //   path: '/develop/bb',
      //   name: 'Introduction',
      //   // component: () => import('@/views/develop/bb'),
      //   meta: { title: '状态管理' }
      // },

      // {
      //   path: '/develop/bb',
      //   name: 'Introduction',
      //   // component: () => import('@/views/develop/bb'),
      //   meta: { title: '目录结构' }
      // },
    ]
  }
]
